package com.example.demo.listener;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @description:
 * @date: 2019/6/11 22:34.
 * @author: yulipeng.
 */
@Component //放在ioc容器中
public class HelloCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("====HelloCommandLineRunner.run()=============="+ Arrays.asList(args));
    }
}
